package com.glodon.paas.account.dao.mongo;

import java.util.List;

import com.glodon.paas.account.dao.TokenDao;
import com.glodon.paas.account.dao.domain.OAuthTokenEntity;
import com.google.code.morphia.query.Query;
 
public class TokenDaoMongoImpl  extends MongoDBDao<OAuthTokenEntity, String> implements TokenDao{
	
	public List<OAuthTokenEntity> getAccessTokens(String authId){
		Query<OAuthTokenEntity> q = this.createQuery().filter("oAuthAuthorizationId =", authId)
												.filter("accessToken", true);
		return q.asList();
	}
}

